<%--
  Created by IntelliJ IDEA.
  User: taohj
  Date: 2014/6/29
  Time: 19:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="menu" value="none"></c:set>

<style>
    .dashboardDiv {
        width: 100%;
        height: 30px;
        margin: 0px 0px;
        padding-left:20px;
        padding-top: 4px;
        background: rgb(58, 123, 250);

    }

    .dashboardDiv > ul{
        list-style: none;
    }

    .dashboardDiv > ul  > li{
        min-width: 80px;
        float: left;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        height: 16px;
        padding: 10px 0 4px 4px;
        text-align: center;
        color: #ffffff;
        margin-left: 1px;
        border-right: 2px solid rgb(73,93,203);
        background: rgb(58, 123, 230);
    }

    .dashboardDiv > ul  > li:hover{
        background-color: rgb(243,243,243);
        color: #000;
    }

    .dashboardDiv > ul  > li[class=active]{
        background-color: rgb(243,243,243);
        color: #000;
    }
</style>

<script>
    $(function(){
        $(".dashboardDiv>ul>li").each(function(index){
            $(this).on('click',function(){
                var href=$(this).attr('href');
                if(href){
                    location.href=href;
                }

            });
        });
    });
</script>


<div class="dashboardDiv">
    <ul style="">
        <li href="/">返回首页</li>

        <c:if test="${not empty requestScope.dashboardMenus}">
            <c:forEach items="${requestScope.dashboardMenus}" var="m">
                <li href="${m.href}" <c:if test="${m.active}">class="active"</c:if>>${m.name}</li>
            </c:forEach>
        </c:if>
        <li href="/front/my/dataset/list" <c:if test="${dashboardMenuTag=='mydataset'}">class="active"</c:if> >数据集管理</li>
        <li href="/front/my/org/list" <c:if test="${dashboardMenuTag=='myorg'}">class="active"</c:if>>机构管理</li>
        <li href="/front/my/app/list" <c:if test="${dashboardMenuTag=='myApp'}">class="active"</c:if>>APP管理</li>
        <li href="/front/my/favorites/list" <c:if test="${dashboardMenuTag=='myFavorites'}">class="active"</c:if>>收藏夹</li>
    </ul>
</div>

